022ae7a891943e1e686b5a108f86e8e1f2b0af03,lib/src/main/java/com/turingtechnologies/materialscrollbar/Indicator.java,Indicator,linkToScrollBar,#MaterialScrollBar#,41

Before Change


            setBackgroundDrawable(ContextCompat.getDrawable(context, R.drawable.indicator));
        }
        RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(Utils.getDP(getIndicatorWidth(), this), Utils.getDP(getIndicatorHeight(), this));
        lp.setMargins(0, 0, Utils.getDP(8, this), 0);
        setVisibility(INVISIBLE);

        textView = new TextView(context);

After Change


            setBackgroundDrawable(ContextCompat.getDrawable(context, R.drawable.indicator));
        }
        RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(Utils.getDP(getIndicatorWidth(), this), Utils.getDP(getIndicatorHeight(), this));
        if(addSpace){
            lp.setMargins(0, 0, Utils.getDP(22, this), 0);
        } else {
            lp.setMargins(0, 0, Utils.getDP(12, this), 0);
        }
        setVisibility(INVISIBLE);